@include('admin::layouts.header')
<div class="admin-main layui-anim layui-anim-upbit">
	<fieldset class="layui-elem-field layui-field-title">
		<legend>编辑</legend>
	</fieldset>
	<form class="layui-form layui-form-pane" lay-filter="form">
		<div class="layui-form-item">
            <label class="layui-form-label">权限名称</label>
            <div class="layui-input-4">
                <input type="text" maxlength="30" name="title" value="{{$info->title}}" lay-verify="required" placeholder="请输入权限名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">路由地址</label>
            <div class="layui-input-4">
                <input type="text" maxlength="50" name="href" value="{{$info->href}}" placeholder="请输入路由地址" class="layui-input">
            </div>
			<div class="layui-form-mid layui-word-aux"> 路由地址格式为：admin.admin.index
			</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标名称</label>
            <div class="layui-input-4">
                <input type="text" maxlength="30" name="icon" value="{{$info->icon}}" placeholder="请输入图标名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-2">
                <input type="text" onkeyup="this.value=this.value.replace(/\D/gi,&quot;&quot;)" maxlength="11" name="sort" value="{{$info->sort}}" placeholder="请输入排序编号" lay-verify="required" class="layui-input">
            </div>
        </div>
		@include('admin::layouts.submit',['url'=>route('admin.auth_rule.index')])
	</form>
</div>
@include('admin::layouts.footer')
@include('admin::layouts.edit_ajax',['url'=>route('admin.auth_rule.update',['id'=>$info->id])])